package com.fh.common;

/**
 * @author huangp
 * @create 2020-07-15 11:07
 */
public class ResultMassage {


    private Integer code;      //返回的状态码  0 成功  1失败
    private String msg;         //返回的字符串信息
    private Object data;        //返回的数据

    public ResultMassage(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
        this.msg = resultEnum.getMsg();
    }

    public ResultMassage(ResultEnum resultEnum, Object data) {
        this.code = resultEnum.getCode();
        this.msg = resultEnum.getMsg();
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
